﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Template.Master"
    Inherits="System.Web.Mvc.ViewPage<ISetting>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    站点设置
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div region="center" style="width: 500px; height: 100%; padding: 1px; overflow-y: auto">
        <ul style="display: none; border: 1px solid #C4E7FB; height: 30px; margin: 4px 10px;
            padding: 10px 2px; vertical-align: middle;">
            <li style="padding: 0px; list-style-type: none">
                <label style="display: block; display: inline-block; zoom: 1; _display: inline; vertical-align: middle;
                    width: 100px; text-align: right; padding: 0px 5px 0px 0px;">
                    载入语言:</label>
                <select id="cc" name="Culture" editable="false">
                </select>
                <input type="button" id="load-culture" value="手动加载" style="display: none" />
            </li>
        </ul>
        <div id="jqeasyui-form">
            <form action="<%=Url.Action("Site","Setting") %>" method="POST">
            <fieldset>
                <p>
                    <label>
                        网站标题:</label><input type="text" name="Title" style="width: 200px" value="<%=Model.Title %>" /></p>
                <p>
                    <label>
                        MetaKeywords:</label><input type="text" name="MetaKeywords" style="width: 200px"
                            value="<%=Model.MetaKeywords %>" /></p>
                <p>
                    <label>
                        MetaDescription:</label><input type="text" name="MetaDescription" style="width: 200px"
                            value="<%=Model.MetaDescription %>" /></p>
                <p>
                    <label>
                        QQ客服:</label><input type="text" name="Qq" style="width: 200px" value="<%=Model.Qq %>" /></p>
                <p>
                    <label>
                        联系人:</label><input type="text" name="Contacter" style="width: 200px" value="<%=Model.Contacter %>" /></p>
                <p>
                    <label>
                        客服电话:</label><input type="text" name="CustomerServiceTelnet" style="width: 200px"
                            value="<%=Model.CustomerServiceTelnet %>" /></p>
                <p>
                    <label>
                        全国热线:</label><input type="text" name="HotLineTelnet" style="width: 200px" value="<%=Model.HotLineTelnet %>" /></p>
                <p>
                    <label>
                        手机:</label><input type="text" name="Mobile" style="width: 200px" value="<%=Model.Mobile %>" /></p>
                <p>
                    <label>
                        电话:</label><input type="text" name="Telnet" style="width: 200px" value="<%=Model.Telnet %>" /></p>
                <p>
                    <label>
                        传真:</label><input type="text" name="Fax" style="width: 200px" value="<%=Model.Fax %>" /></p>
                <p>
                    <label>
                        邮箱:</label><input type="text" name="Email" style="width: 200px" value="<%=Model.Email %>" /></p>
                <p>
                    <label>
                        订单公司名称:</label><input type="text" style="width: 200px" name="OrderCompanyName" value="<%=Model.OrderCompanyName %>" /></p>
                <p>
                    <label>
                        订单邮箱:</label><input type="text" name="OrderEmail" style="width: 200px" value="<%=Model.OrderEmail %>" /></p>
                             <p>
                    <label>
                       邮编 :</label><input type="text" name="Code" style="width: 200px" value="<%=Model.Code %>" /></p>
                <p>
                    <label>
                        公司地址:</label>
                    <textarea rows="1" name="CompanyAdress" cols="1"><%=Model.CompanyAdress%></textarea>
                    <p>
                        <label>
                            Copyright:</label>
                        <textarea rows="1" name="Copyright" cols="1"><%=Model.Copyright%></textarea>
                    </p>
                    <%--<p>
                    <label>
                        Sample label:</label><input type="text" class="text-medium" /><input type="text"
                            class="text-small" /><input type="text" class="text-small" /></p>--%>
                    <%--<p>
                    <label>
                        Sample label:</label>
                    <select>
                        <option>Select one</option>
                        <option>Select two</option>
                        <option>Select tree</option>
                        <option>Select one</option>
                        <option>Select two</option>
                        <option>Select tree</option>
                    </select>
                </p>--%>
                    <p>
                        <label>
                            访问统计代码:</label><textarea rows="1" name="AccessCountHtml" cols="1"><%=Model.AccessCountHtml %></textarea></p>
                    <p>
                        <label>
                        </label>
                        <input type="submit" value="保存" />
                    </p>
            </fieldset>
            </form>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <script type="text/javascript">
        $(function () {
            var culturehref = '/Admin/<%=Model.Culture %>/Setting/Site';
            $('#cc').combobox({
                url: '<%=Url.Action("GetCultureComboBoxJson","System",new{value=Model.Culture}) %>',
                valueField: 'id',
                textField: 'text',
                onSelect: function (record) {
                    culturehref = '/Admin/' + record.id + '/Setting/Site';
                    location.href = '/Admin/' + record.id + '/Setting/Site';
                }
            });
            $("#load-culture").click(function () {
                location.href = culturehref;
            });
        });
    </script>
</asp:Content>
